<template>
  <div>
    <topMeun msg="msgA  " men={this.menth}></topMeun>
    <router-view></router-view>
    <!--<mainContainer></mainContainer>-->
    <!--<div class="markdown-body">-->
      <!--<markdown v-highlight></markdown>-->
    <!--</div>-->
    <!--<ul>-->
      <!--<li><router-link to="/">/</router-link></li>-->
      <!--<li><router-link to="/other">/other</router-link></li>-->
    <!--</ul>-->
    <!--<router-view class="view one"></router-view>-->
    <!--<router-view class="view two" name="a"></router-view>-->
    <!--<router-view class="view three" name="b"></router-view>-->
  </div>
</template>

<script>
  //import markdown from './docs/example.md'
  import {catalog} from './common/DataSource/config'

  import topMeun from './common/components/TopMeun/index'
  import mainContainer from './components/MainContainer/index'
  export default {
    components: {
      //markdown,
      topMeun,
      mainContainer
    },
    methods: {
      menth: () => {
      }
    },
    created: function () {
      let arcData = {};
      catalog.forEach((data, index) => {
        let {date} = data;
        date = date.substring(0, 11).split('/');
        if (!arcData[date[0]]) {
          arcData[date[0]] = [];
        }
        arcData[date[0]].push({date: (date[1] + '-' + date[2]), index});
      })
      sessionStorage.setItem('arcData', JSON.stringify(arcData));
    }
  }
</script>
